package com.ruoyi.controller;

import com.ruoyi.domain.GoodsSafeguardType;
import com.ruoyi.service.ISafeguardTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@RestController
@RequestMapping("/webshop/safeguardType")
public class SafeguardTypeController {
    @Autowired
    private ISafeguardTypeService safeguardTypeService;

    // 全查
    @GetMapping("/list")
    public List<GoodsSafeguardType> list(){
        List<GoodsSafeguardType> list = safeguardTypeService.list();
        return list;
    }

}
